﻿using FileService.Domain;
using FileService.infrastructure.Services;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Zack.Commons;

namespace FileService.infrastructure
{
    class ModuleInitializer : IModuleInitializer
    {
        public void Initialize(IServiceCollection services)
        {
            services.AddScoped<IStorageClient, SMBStorageClient>();
            services.AddScoped<IStorageClient, MinioStorageClient>();
            services.AddScoped<IFSRepository, FSRepository>();
            services.AddScoped<ITabRepository, TabRepository>();
            services.AddScoped<FSDomainService>();
            services.AddScoped<IThumbnailService, ThumbnailService>();
        }
    }
}
